package com.baichang.taoshunda.utils;

import cn.jpush.api.push.model.Message;

import java.util.List;

public class DeliveryJpushUtils {

    public static DeliveryJPushHelper deliveryJPushHelper = null;

    private DeliveryJpushUtils() {

    }

    static {
        deliveryJPushHelper = new DeliveryJPushHelper();
    }

    public static boolean sendMsgByAlias(Message message, List<String> alias) {
        return deliveryJPushHelper.sendMsgByAlias(message, alias);
    }

    public static boolean sendAll(String title, String content) {
        return deliveryJPushHelper.sendAll(title, content, null);
    }

    public static boolean sendAll(String title, String content, String data) {
        return deliveryJPushHelper.sendAll(title, content, data);
    }

    public static boolean sendMsgAll(Message message) {
        return deliveryJPushHelper.sendMsgAll(message);
    }

    public static boolean sendByTagsNoData(String title, String content, String... tags) {
        return deliveryJPushHelper.sendByAliasNoData(title, content, tags);
    }

    public static boolean sendByTags(String title, String content, String data, String... tags) {
        return deliveryJPushHelper.sendByTags(title, content, data, tags);
    }

    public static boolean sendByTags(String title, String content, String data, List<String> tags) {
        return deliveryJPushHelper.sendByTags(title, content, data, tags);
    }

    public static boolean sendMsgByTags(Message message, String... tags) {
        return deliveryJPushHelper.sendMsgByTags(message, tags);
    }


    public static boolean sendByAliasNoData(String title, String content, String... alias) {
        return deliveryJPushHelper.sendByAliasNoData(title, content, alias);
    }

    public static boolean sendByAlias(String title, String content, String data, String... alias) {
        return deliveryJPushHelper.sendByAlias(title, content, data, alias);
    }

    public static boolean sendByAlias(String title, String content, String data, List<String> alias) {
        return deliveryJPushHelper.sendByAlias(title, content, data, alias);
    }

    public static boolean sendMsgByAlias(Message message, String... alias) {
        return deliveryJPushHelper.sendMsgByAlias(message, alias);
    }

}
